package com.tengju.data.domain.model.clickhouse.brand;

import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

public interface BrandMarketSortRepository {

    //KA品牌销售总榜
    List<BrandMarketSortInfo> getKABrandMarketSort(List<Long> idCodeList,
                                                   Integer dateType,
                                                   BigDecimal minGmv,
                                                   BigDecimal maxGmv,
                                                   String currentMonthDate,
                                                   String lastMonthDate,
                                                   List<String> quarterMonthList,
                                                   String orderColumn,
                                                   String orderType,
                                                   int offset,
                                                   int limit);

    //SEC品牌销售总榜
    List<BrandMarketSortInfo> getSECBrandMarketSort(List<Long> idCodeList,
                                                    Integer dateType,
                                                    BigDecimal minGmv,
                                                    BigDecimal maxGmv,
                                                    String currentMonthDate,
                                                    String lastMonthDate,
                                                    List<String> quarterMonthList,
                                                    String orderColumn,
                                                    String orderType,
                                                    int offset,
                                                    int limit);

    int getKABrandMarketCount(List<Long> idCodeList,
                              Integer dateType,
                              BigDecimal minGmv,
                              BigDecimal maxGmv,
                              String currentMonthDate,
                              String lastMonthDate,
                              List<String> quarterMonthList);

    int getSECBrandmarketCount(List<Long> idCodeList,
                               Integer dateType,
                               BigDecimal minGmv,
                               BigDecimal maxGmv,
                               String currentMonthDate,
                               String lastMonthDate,
                               List<String> quarterMonthList);
}
